﻿@{
    Layout = null;
    List<LeEdu.MODEL.Order> order = ViewBag.list;
    LeEdu.MODEL.Order tui = ViewBag.tuihuo;
}

<!DOCTYPE html>
<!-- saved from url=(0025)http://boolan.com/setting -->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <meta property="qc:admins" content="24314006454166375">
    <meta name="baidu-site-verification" content="KvVr95tdga">
    <link href="~/Content/css/default.css" rel="stylesheet" />
    <link href="~/Content/css/component.css" rel="stylesheet" />

    <link href="http://boolan.com/favicon.ico" type="image/x-icon" rel="icon">
    <link href="http://boolan.com/favicon.ico" type="image/x-icon" rel="shortcut icon">
    <title>设置 | 乐知教育</title>

    <link rel="stylesheet" href="/Content/Index/css/shared-layout-6715bec318.css">

    <style>
        * {
            -moz-box-sizing: border-box !important;
            -webkit-box-sizing: border-box !important;
            -o-box-sizing: border-box !important;
            -ms-box-sizing: border-box !important;
            box-sizing: border-box !important;
        }

        #top-hint {
            min-width: 1200px;
        }

        .navbar {
            min-width: 1200px;
        }

            .navbar:before, .navbar:after {
                content: " ";
                display: table;
            }

            .navbar:after {
                clear: both;
            }


        .footer {
            min-width: 1200px;
        }

            .footer:before, .footer:after {
                content: " ";
                display: table;
            }

            .footer:after {
                clear: both;
            }


            .footer li > a {
                line-height: normal;
            }


        .notification {
            position: absolute;
            width: 170px;
            background-color: #F3EFC4;
            color: #2c3e50;
            font-size: 12px;
            top: 75px;
            z-index: -1;
        }

        .notification-item {
            height: 30px;
            line-height: 30px;
            padding-left: 12px;
            margin-top: 0;
            margin-bottom: 0;
            display: none;
        }

            .notification-item .btn-close {
                width: 14px;
                height: 14px;
                margin: auto;
                float: none;
                display: inline-block;
                float: right;
                margin-top: 8px;
                margin-right: 4px;
            }

                .notification-item .btn-close:hover {
                    cursor: pointer;
                }

        .notification-item-checklink {
            color: #3665ad;
        }

        #top-hint {
            background: #fff29d;
        }

        .top-hint-close-button {
            display: block;
            float: right;
            margin-right: 20px;
        }

            .top-hint-close-button:hover {
                cursor: pointer;
            }

        .top-hint-mainPart {
            height: inherit;
            float: left;
            width: 1000px;
            height: 38px;
        }

            .top-hint-mainPart > p {
                margin-top: 8px;
                margin-bottom: 0;
                color: #333;
            }

            .top-hint-mainPart:hover {
                cursor: pointer;
            }
    </style>

    <link href="/Content/Index/css/acccount.min.css" rel="stylesheet">
    @*<script src="~/Scripts/jquery-1.8.2.min.js"></script>*@

    <script src="~/bootstrap-3.3.5-dist/jquery-2.0.0.js"></script>
    <script src="~/bootstrap-3.3.5-dist/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>

    <link href="~/bootstrap-3.3.5-dist/bootstrap-3.3.5-dist/css/bootstrap.min.css" rel="stylesheet" />


    <style>
        .placeholder {
            visibility: hidden;
            height: 0;
        }



        .coupon-table td:first-of-type {
            font-size: 16px;
        }

        .setting-ItemLabel {
            width: 107px;
        }

        .setting-basicItemLabel {
            width: 76px;
        }

        .setting-basicTitle {
            width: 76px;
        }
    </style>

    <script src="http://hm.baidu.com/hm.js?cb581c4d338ec0f3b1ae74d12dad369a"></script>
    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?cb581c4d338ec0f3b1ae74d12dad369a";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();

        $(function () {
            //基本资料隐藏
            $('.s1').prop("hidden", "");
            //基本资料隐藏
            $('.s2').prop("hidden", "hidden");


        })
        //点击详细信息
        function x1() {
            //基本资料隐藏
            $('.s1').prop("hidden", "hidden");
            //详细信息显示
            $('.s2').prop("hidden", "");

        }
        //点击基本资料
        function j1() {
            //基本资料隐藏
            $('.s1').prop("hidden", "");
            //详细信息显示
            $('.s2').prop("hidden", "hidden");
        }
        function Fukuan(id, pageindex) {

            $.post("/Order/MyFukuan", { id: id, pageindex: pageindex }, function (data) {
                $('#yfk').html(data);



            })

        }

    </script>


</head>
<body>



    <header class="navbar">
        <div class="container">
            <h1 class="navbar-brand" style="padding-top: 0;margin-top:0">
                <a href="/Home/Index" style="vertical-align:middle;padding-top: 0;margin-top:0">
                    <img src="~/Content/images/boolan-logo.png" style="padding-top: 0;margin-top:0" />
                </a>
            </h1>
            <nav class="nav navbar-nav" style="height:60px">
                <ul>
                    <li><a href="/Home/Index" class="active">首页</a></li>
                    <li><a href="/Home/Boutique">精品课程</a></li>
                    <li><a href="/Home/GeekClass">极客班</a></li>
                    <li><a href="/Admin/Showteacher">专家名师</a></li>
                </ul>
            </nav>
            @{
                if (Session["User"] != null)
                {
                    if (Convert.ToInt32(Session["RoleId"]) == 0)
                    {
                        <figure class="avatar navbar-avatar dd-menu">
                            @{
                        var ddd = Session["User"] == null ? "" : (Session["User"] as LeEdu.MODEL.UserInfo).Avatar;
                        if (ddd == null)
                        {
                            <img class="dd-menu-trigger" src="~/Content/img/default-head-image.png" />
                        }
                        else
                        {
                            <img class="dd-menu-trigger" src="~/Img/@ddd" />
                        }

                            }

                            <ul>
                                @{var c = (Session["User"] as LeEdu.MODEL.UserInfo).UserInfoId; }
                                <li>
                                    <a href="/Home/Personage/@c">
                                        <img src="/Content/Index/img/setting.png" /><span>个人设置</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/my/Index">
                                        <img src="/Content/Index/img/messages.png" /><span>我的教学</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/Admin/Index">
                                        <img src="/Content/Index/img/signout.png" /><span>后台管理</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/Home/Exit">
                                        <img src="/Content/Index/img/signout.png" /><span>注销登录</span>
                                    </a>
                                </li>
                            </ul>
                            <figcaption style="height:75px;"><span>@Session["Uname"]</span></figcaption>
                        </figure>
                    }
                    else
                        if (Convert.ToInt32(Session["RoleId"]) == 1)
                        {
                            <figure class="avatar navbar-avatar dd-menu">
                                @{
                            var ddd = Session["User"] == null ? "" : (Session["User"] as LeEdu.MODEL.UserInfo).Avatar;
                            if (ddd == null)
                            {
                                <img class="dd-menu-trigger" src="~/Content/img/default-head-image.png" />
                            }
                            else
                            {
                                <img class="dd-menu-trigger" src="~/Img/@ddd" />
                            }

                                }

                                <ul>
                                    @{var c = (Session["User"] as LeEdu.MODEL.UserInfo).UserInfoId; }
                                    <li>
                                        <a href="/Home/Personage/@c">
                                            <img src="/Content/Index/img/setting.png" /><span>个人设置</span>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="/Order/MyOrder">
                                            <img src="~/Content/images/Index2.png" />
                                            <span>我的订单</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="/my/Index">
                                            <img src="/Content/Index/img/messages.png" /><span>我的学习</span>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="/Login/Index">
                                            <img src="/Content/Index/img/signout.png" /><span>注销登录</span>
                                        </a>
                                    </li>


                                </ul>
                                <figcaption style="height:75px;"><span>@Session["Uname"]</span></figcaption>
                            </figure>
                        }
                        else
                            if (Convert.ToInt32(Session["RoleId"]) == 2)
                            {
                                <figure class="avatar navbar-avatar dd-menu">

                                    @{ var ddd = Session["User"] == null ? "" : (Session["User"] as LeEdu.MODEL.UserInfo).Avatar;
                                     if (ddd == null)
                                     {
                                        <img class="dd-menu-trigger" src="~/Content/img/default-head-image.png" />
                                     }
                                     else
                                     {
                                        <img class="dd-menu-trigger" src="~/Img/@ddd" />
                                     }
                                    }

                                    <ul>
                                        @{
                                var c = (Session["User"] as LeEdu.MODEL.UserInfo).UserInfoId; }
                                        <li>
                                            <a href="/Group/batchShow">
                                                <span class="pull-right num"></span>
                                                <i class="es-icon es-icon-notificationson"></i>站内通知
                                            </a>
                                        </li>
                                        <li>
                                            <a href="/Home/Personage/@c">
                                                <img src="/Content/Index/img/setting.png" /><span>个人设置</span>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="/my/Index">
                                                <img src="/Content/Index/img/messages.png" /><span>我的教学</span>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="/Course/AddGapfilling">
                                                <img src="/Content/Index/img/messages.png" /><span>教师课程</span>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="/Login/Index">
                                                <img src="/Content/Index/img/signout.png" /><span>注销登录</span>
                                            </a>
                                        </li>
                                    </ul>
                                    <figcaption style="height:75px;"><span>@Session["Uname"]</span></figcaption>
                                </figure>
                            }

                }
                else
                {
                    <div class="navbar-button-group button-group">
                        <ul>
                            <li>

                                <a class="button" href="/Register/Index">注册</a>

                            </li>


                            <li><a class="button-blue" href="/Login/Index">登录</a></li>

                        </ul>
                    </div>}}
        </div>
    </header>

    <div id="main">

        <div id="setting-main">

            <div id="setting-content">
                <div id="setting-contentLeft">
                    <a onclick="j1()">  <div id="setting-basicButton" class="expertInterview-side-item-selected">我的订单</div></a>
                    <div hidden="hidden" id="setting-detailButton" class="expertInterview-side-item"></div>
                    <a onclick="x1()">  <div id="setting-vipInfoButton" class="expertInterview-side-item">我的账户</div></a>
                    <div hidden="hidden" id="setting-CouponInfoButton" class="expertInterview-side-item"></div>
                </div>
                <div id="setting-contentRight" class="s1">

                    <div class="setting-title booTitleFont" style="margin-top:16px;margin-left:30px;">我的订单</div>
                    <ul id="myTab" class="nav nav-tabs">
                        <li class="active">
                            <a href="#home" data-toggle="tab">
                                全部订单
                            </a>
                        </li>
                        <li><a href="#ios" data-toggle="tab" onclick="Fukuan(@Session["id"],1)">已付款</a></li>
                        <li><a href="#pp" data-toggle="tab">未付款</a></li>

                    </ul>
                    <div id="myTabContent" class="tab-content">
                        <div class="tab-pane fade in active" id="home">
                            <table class="table table-striped">

                                <thead>
                                    <tr>
                                        <th>课程名称</th>
                                        <th>订单编号</th>
                                        <th>状态</th>
                                        <th>实付(元)</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach (var item in order)
                                    {
                                        <tr>

                                            <td>@item.Oname</td>
                                            <td>@item.Onum</td>
                                            <td>@item.OtradeState</td>
                                            <td><span>@item.Oprice</span></td>
                                            @if (item.OtradeState == "未付款")
                                            {
                                                <td>
                                                    <div class="btn-group">
                                                        <a class="btn btn-default btn-sm" href="#">管理</a>

                                                        <a href="/Admin/" type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
                                                            <span class="caret"></span>
                                                        </a>
                                                        <ul class="dropdown-menu pull-right">
                                                            <li>

                                                                <a class="recommend-course" data-toggle="modal" href="/Order/purchase?id=@item.CourseID&Onum=@item.Onum&Oprice=@item.Oprice">

                                                                    <span class="glyphicon glyphicon-hand-up"></span>去支付
                                                                </a>

                                                            </li>
                                                            <li class="divider"></li>
                                                            <li><a class="close-course" href="/Order/cancelOrder/@item.OID" onclick="return confirm('确认取消吗？')"><span class="glyphicon glyphicon-ban-circle"></span> 取消订单</a></li>
                                                        </ul>
                                                    </div>
                                                </td>
                                            }
                                            else if (item.OtradeState == "等待卖家发货")
                                            {

                                                <td>
                                                    <div class="btn-group">
                                                        <a class="btn btn-default btn-sm" href="#">管理</a>

                                                        <a href="/Admin/" type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
                                                            <span class="caret"></span>
                                                        </a>
                                                        <ul class="dropdown-menu pull-right">

                                                            <li>
                                                                <a  href="/Order/Tmotai/@item.Onum" class="btn btn-sm btn-default" data-toggle="modal" data-target="#exampleModal">
                                                                    <span class="glyphicon glyphicon-hand-up"></span>我要退款
                                                                </a>
                                                            </li>
                                                         
                                                            <li class="divider"></li>
                                                            <li><a class="close-course" href="/Order/cancelOrder/@item.OID" onclick="return confirm('确认删除吗？')"><span class="glyphicon glyphicon-ban-circle"></span> 删除订单</a></li>
                                                        </ul>
                                                    </div>
                                                </td>
                                            }
                                            else if (item.OtradeState == "退货审核中！！")
                                            {
                                                <td>
                                                    <div class="btn-group">
                                                        <a class="btn btn-default btn-sm" href="#">管理</a>

                                                        <a href="/Admin/" type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
                                                            <span class="caret"></span>
                                                        </a>
                                                        <ul class="dropdown-menu pull-right">
                                                            <li>
                                                                <a class="recommend-course" data-toggle="modal" onclick="alert('催单成功！工作人员会尽快审核！！')">
                                                                    <span class="glyphicon glyphicon-hand-up"></span>我要催单！
                                                                </a>
                                                            </li>                                                           
                                                            <li class="divider"></li>
                                                            <li><a class="close-course" href="/Order/cancelOrder/@item.OID" onclick="return confirm('确认删除吗？')"><span class="glyphicon glyphicon-ban-circle"></span> 删除订单</a></li>
                                                        </ul>
                                                    </div>
                                                </td>

                                            }

                                        </tr>
                                    }
                                </tbody>
                            </table>
                            <div>
                                <a href="/Order/MyOrder?id=@Session["id"]&pageindex=1" class="btn btn-default">首页</a>
                                <a href="/Order/MyOrder?id=@Session["id"]& PageIndex=@((ViewBag.PageIndex - 1) < 0 ? 1 : ViewBag.PageIndex - 1)" class="btn btn-default">上一页</a>
                                @{
                                    int starindex = ViewBag.PageIndex;
                                    if ((starindex + 4) > ViewBag.PageCount)
                                    {
                                        starindex = ViewBag.PageCount - 4 < 1 ? 1 : ViewBag.PageCount - 4;
                                    }
                                    int Stopindex = ViewBag.pageIndex + 4;
                                    if (Stopindex > ViewBag.pageCount)
                                    {
                                        Stopindex = ViewBag.PageCount;
                                    }
                                    for (int i = starindex; i <= Stopindex; i++)
                                    {
                                        <a href="/Order/MyOrder?id=@Session["id"]&PageIndex=@i" class="btn @(ViewBag.PageIndex == i ? "btn-success" : "btn-default")">@i</a>
                                    }
                                }

                                <a href="/Order/MyOrder?id=@Session["id"]&PageIndex=@((ViewBag.PageIndex + 1) > ViewBag.PageCount ? ViewBag.PageCount : ViewBag.PageIndex + 1)" class="btn btn-default">下一页</a>
                                <a href="/Order/MyOrder?id=@Session["id"]&PageIndex=@(ViewBag.PageCount)" class="btn btn-default">尾页</a>

                                <label>一共@(ViewBag.PageCount) 页</label>



                            </div>
                        </div>
                        <div class="tab-pane fade" id="ios">

                            <table class="table table-striped">
                                <thead>
                                    <tr>
                                        <th>课程名称</th>
                                        <th>订单编号</th>
                                        <th>状态</th>
                                        <th>实付(元)</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody id="yfk"></tbody>
                            </table>
                            <div>

                                <a onclick="Fukuan(@Session["id"],1)" class="btn btn-default">首页</a>
                                <a onclick="Fukuan(@Session["id"],@((ViewBag.PageIndex - 1) <= 0 ? 1 : ViewBag.PageIndex - 1))" class="btn btn-default">上一页</a>
                                @{
                                    int starinde = ViewBag.PageIndex;
                                    if ((starinde + 4) > ViewBag.PageCount)
                                    {
                                        starinde = ViewBag.PageCount - 4 < 1 ? 1 : ViewBag.PageCount - 4;
                                    }
                                    int Stopinde = ViewBag.pageIndex + 4;
                                    if (Stopinde > ViewBag.pageCount)
                                    {
                                        Stopinde = ViewBag.PageCount;
                                    }
                                    for (int i = starinde; i <= Stopinde; i++)
                                    {

                                        <a id="ym" onclick="Fukuan(@Session["id"],PageIndex=@i)" class="btn">@i</a>
                                    }
                                }


                                <a onclick="Fukuan(@Session["id"],@((ViewBag.PageIndex + 1) > ViewBag.PageCount ? ViewBag.PageCount : ViewBag.PageIndex + 1))" class="btn btn-default">下一页</a>

                                <a onclick="Fukuan(@Session["id"],@(ViewBag.PageCount))" class="btn btn-default">尾页</a>

                                <label>一共@(ViewBag.PageCount) 页</label>



                            </div>
                        </div>
                        <div class="tab-pane fade" id="pp">
                            <table class="table table-striped">

                                <thead>
                                    <tr>
                                        <th>课程名称</th>
                                        <th>订单编号</th>
                                        <th>状态</th>
                                        <th>实付(元)</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                @*<tbody>
                                        @foreach (var item in weizhifu)
                                        {
                                            <tr>

                                                <td>@item.Oname</td>
                                                <td>@item.Onum</td>
                                                <td>@item.OtradeState</td>
                                                <td><span>@item.Oprice</span></td>

                                                <td>
                                                    <div class="btn-group">
                                                        <a class="btn btn-default btn-sm" href="#">管理</a>

                                                        <a href="/Admin/" type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
                                                            <span class="caret"></span>
                                                        </a>
                                                        <ul class="dropdown-menu pull-right">
                                                            <li>

                                                                <a class="recommend-course" data-toggle="modal" href="/Home/GouMai?id=@item.CourseID&Onum=@item.Onum&Oprice=@item.Oprice">

                                                                    <span class="glyphicon glyphicon-hand-up"></span>去支付
                                                                </a>

                                                            </li>
                                                            <li class="divider"></li>
                                                            <li><a class="close-course" href="/Home/quxiaodingdan/@item.OID" onclick="return confirm('确认取消吗？')"><span class="glyphicon glyphicon-ban-circle"></span> 取消订单</a></li>
                                                        </ul>
                                                    </div>
                                                </td>



                                            </tr>
                                        }
                                    </tbody>*@
                            </table>


                        </div>

                    </div>



                </div>

                <div id="setting-contentRight" class="s2">
                    <div class="setting-title booTitleFont" style="margin-left: 30px; margin-top:16px;">我的账户</div>
                    <div class="col-md-10">

                        <ul class="nav nav-tabs mbm">
                            <li class="active">
                                <a href="finance">我的乐币</a>

                            </li>
                            <li>
                                <a href="/Order/Cash/@Session["id"]">我的现金账单</a>

                            </li>
                        </ul>

                        <a class="md-trigger" data-modal="modal-4" style="color:red;text-decoration:none">《乐币须知》</a>
                        <br />
                        <br />
                        <span style="color:blue">账户余额:</span><strong style="color:green">@ViewBag.Yue （元）</strong>
                        <br />
                        <br />
                        <form action="/Order/purchase">

                            <table>

                                <tr>
                                    <td><label>充值：</label></td>
                                    <td><input name="id" value="@Session["id"]" type="hidden" /><input name="Otype" value="充值" type="hidden" /></td>
                                    <td><input name="Oprice" id="cc" type="radio" value="30" checked="checked" />30（元）</td>
                                    <td><input name="Oprice" id="cc" type="radio" value="50" />50（元）</td>
                                    <td><input name="Oprice" id="cc" type="radio" value="100" />100 （元）</td>
                                    <td><input type="submit" class="btn btn-success" value="账户充值" /></td>
                                </tr>

                            </table>
                        </form>
                        <br />
                        <br />
                        <form id="user-search-form" class="form-inline well well-sm" action="" method="get" novalidate="">
                            <div class="form-group">
                                <select class="form-control" name="lastHowManyMonths" onchange="submit();">
                                    <option value="" selected="selected">全部记录</option>
                                    <option value="oneWeek">最近一周</option>
                                    <option value="twoWeeks">最近两周</option>
                                    <option value="oneMonth">最近一个月</option>
                                    <option value="twoMonths">最近两个月</option>
                                    <option value="threeMonths">最近三个月</option>
                                </select>
                            </div>
                            <a class="btn btn-primary" href="http://www.zhishile.com/admin/coin/bill/export/RMB">充值记录</a>
                            <a class="btn btn-primary" href="http://www.zhishile.com/admin/coin/bill/export/RMB">消费记录</a>
                            <a class="btn btn-primary" href="http://www.zhishile.com/admin/coin/bill/export/RMB">导出结果</a>

                        </form>

                        <p class="text-muted">
                            <span class="mrl">收入：<strong class="inflow-num">0</strong> 元</span>
                            <span class="mrl">支出：<strong class="outflow-num">0</strong> 元</span>
                        </p>

                        <div class="table-responsive">
                            <div class="empty">暂无记录</div><table class="table table-striped"></table>
                        </div>



                    </div>

                </div>

                <div style="clear: both"></div>
            </div>

        </div>
        <div class="placeholder"><p>placeholder</p></div>
    </div>



    <footer class="footer">
        <div class="footer-row-1">
            <div class="container">
                <div class="row">
                    <section class="col-5">
                        <h2>博览网，高端IT在线学习平台</h2>
                        <nav>
                            <ul>
                                <li><a target="_blank" href="http://boolan.com/company/about">关于博览</a><span>&nbsp;|&nbsp;</span></li>
                                <li><a target="_blank" href="http://boolan.com/company/career">加入我们</a><span>&nbsp;|&nbsp;</span></li>
                                <li><a target="_blank" href="http://boolan.com/company/contact">联系我们</a><span>&nbsp;|&nbsp;</span></li>
                                <li><a target="_blank" href="http://boolan.com/company/feedback">意见反馈</a></li>
                            </ul>
                        </nav>
                    </section>
                    <section class="col-5 footer-companion">
                        <h2>合作伙伴</h2>
                        <nav>
                            <ul>
                                <li><a href="http://study.163.com/" target="_blank"><img src="/Content/Index/img/yunKeTang.png"></a> </li>
                                <li><a href="http://www.pptvyun.com/" target="_blank"><img src="/Content/Index/img/ppCloud.png"></a></li>
                                <li><a href="http://www.chinagdg.com/forum.php" target="_blank"><img src="http://boolan.com/img/shareLayout/google.png" style="display: none !important;"></a></li>
                                <li><a href="http://msdn.microsoft.com/zh-cn/" target="_blank"><img src="/Content/Index/img/microsoft.png"></a></li>
                            </ul>
                        </nav>
                    </section>

                </div>
            </div>
        </div>

    </footer>
    @*<script src="/Content/Index/js/jquery-2.1.4.min.js"></script>*@
    <script src="/Content/Index/js/jquery.form.js"></script>
    <script src="/Content/Index/js/auto_textarea.js"></script>
    <script src="/Content/Index/js/popup_tip.js"></script>
    <!-- 实现导航栏的下拉菜单-->
    <script src="/Content/Index/js/dropDownMenu.js"></script>
    <!-- 实现消息操作 -->
    <script>
        $(function () {

            //通过轮询查看是否有新消息
            function longPolling() {
                $.ajax({
                    url: "/MessageCenter/AnyNewMessage",
                    type: "POST",
                    dataType: "json",
                    cache: false,
                    timeout: 5000,
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        if (textStatus == "timeout") {
                            //请求超时
                        } else {
                            //其他错误
                        }

                    },

                    success: function (data, textStatus) {
                        if (data != undefined && data.Status == "success" && data.Message == "ok") {
                            showMessage(data.Data);
                        }
                    }
                });
            }

            setInterval(longPolling, 10000);


            //<p class="notification-item">您有3条新回复&nbsp;<a class="notification-item-checklink" href="#">查看</a><a href="#"><img class="btn-close" src="~/img/close.png" /></a></p>
            //<p class="notification-item">您有5条新系统消息&nbsp;<a class="notification-item-checklink" href="#">查看</a><a href="#"><img class="btn-close" src="~/img/close.png" /></a></p>

            //显示新消息
            function showMessage(data) {
                if (data.NewOfficialCount > 0) {
                    $("#official-notification span").text("您有" + data.NewOfficialCount + "条新系统消息");
                    $("#official-notification .btn-close").click(clearOfficialMessage);
                    $("#official-notification").show();
                }

                if (data.NewReplyCount > 0) {
                    $("#reply-notification span").text("您有" + data.NewReplyCount + "条新回复");
                    $("#reply-notification .btn-close").click(clearReplyMessage);
                    $("#reply-notification").show();
                }
            }

            //当点击查看按钮后，隐藏消息提醒，并向服务器发送请求，消除未读消息
            function clearReplyMessage() {
                $("#reply-notification").hide();
                $.post("/MessageCenter/ClearReply");
            }

            function clearOfficialMessage() {
                $("#official-notification").hide();
                $.post("/MessageCenter/ClearOfficial");
            }

        });
    </script>
    <!--实现顶部广告条-->
    <script src="/Content/Index/js/tophint.js"></script>
    <script src="/Content/Index/js/setting.js"></script>
 
    <script src="/Content/Index/js/jquery.Jcrop.min.js"></script>

    @*乐币须知*@
    <div class="md-modal md-effect-4" id="modal-4">
        <div class="md-content">
            <h3>乐币使用指南</h3>
            <div>
                <p>乐币的规则</p>
                <ul>
                    <li><strong>①:</strong>乐币可以使用支付宝进行充值</li>
                    <li><strong>②:</strong>乐币和人民币等值lLB=1RMB</li>
                    <li><strong>③:</strong>乐币只能在本公司使用</li>
                    <li><strong>④:</strong>可以通过分享学习经历获得相应的乐币奖励</li>
                </ul>
                <button class="md-close">关闭!</button>
            </div>
        </div>
    </div>

    <div class="md-overlay"></div>
    <script src="~/Content/js/classie.js"></script>
    <script src="~/Content/js/modalEffects.js"></script>
    @*我要退货*@
    <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class=" modal-dialog">
            <div class="modal-content">

            </div>
        </div>
    </div>



    <script>
        $("#exampleModal").on("hidden.bs.modal", function () {
        $(this).removeData("bs.modal");
    })
    </script>



</body>
</html>
